package com.example.demo.service.impl;

import com.example.demo.dao.UserMapper;
import com.example.demo.entity.PageData;
import com.example.demo.service.ExcelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author suliwei
 * @description
 * @date 2025/5/14 16:50
 */
@Service("ExcelService")
public class ExcelServiceImpl implements ExcelService {

    @Resource
    private UserMapper userMapper;

    /**
     * 测试POI导出用户列表来
     * @return
     */
    public List<PageData> serviceList() {
        return userMapper.selectAll();
    }
}
